Rnoc\Retainful\Api\AbandonedCart\RestApi C

Total Complexity 119
Dependencies 9
Dependents 1
Total lines 700
Lines of code 385
Logical lines of code 222
Comment lines 216
Methods 43
Properties 23

Methods 43

Method Rating Maintainability Complexity Lines of code
getClientIp()
A
56 8 20
encryptData()
S
54 6 20
changeOrderStatus()
S
59 6 16
initStorage()
S
60 4 15
setCartToken()
S
59 4 14
getCustomerCheckoutDetails()
S
60 4 13
getUserAcceptLanguage()
S
62 4 11
generateCartHash()
S
62 4 11
getUserAgent()
S
64 4 10
setCartCreatedDate()
S
65 4 9
__construct()
S
70 4 6
setCustomerBillingDetails()
S
64 4 10
setSessionShippingDetails()
S
64 4 10
isOrderHasValidOrderStatus()
S
60 3 13
formatToIso8601()
S
61 3 12
retrieveCartToken()
S
62 3 11
isBuyerAcceptsMarketing()
S
64 3 11
generateCartToken()
S
56 2 17
isPendingRecovery()
S
68 3 7
getRetainfulApiUrl()
S
68 3 6
convertToCurrency()
S
71 3 6
canTrackAbandonedCarts()
S
70 3 6
userCartCreatedAt()
S
66 3 8
markOrderAsRecovered()
S
63 3 10
considerOnHoldAsAbandoned()
S
74 2 4
decryptData()
S
62 2 10
refreshFragmentsOnPageLoad()
S
74 2 4
isOrderInPendingRecovery()
S
67 2 7
considerCancelledAsAbandoned()
S
74 2 4
isOrderRecovered()
S
67 2 7
retrieveUserIp()
S
67 2 8
getAddressMapFields()
S
60 1 15
syncCart()
S
65 2 9
getClientDetails()
S
68 1 7
formatDecimalPrice()
S
75 1 4
removeSessionBillingDetails()
S
81 1 3
formatDecimalPriceRemoveTrailingZeros()
S
72 1 5
getCurrentCurrencyCode()
S
75 1 4
removeSessionShippingDetails()
S
81 1 3
formatUserIP()
S
74 1 4
hashTheData()
S
75 1 4
getRecoveryLink()
S
67 1 7
isValidOrderStatusToResetCartToken()
S
75 1 4